{% extends "orgs/base.html" %}


{% block head_title %}Update attendance for meeting {{ meeting }}{% endblock %}

{% block body %}
    
    <h1>Update attendance for {{ meeting.get_name_display }} of the {{ meeting.circle }} on {{ meeting.date_and_time.date|date:"D d M Y" }}</h1>
	<br />
 	<div id="basic-form">
		<form id="attendance_form" method="POST" action="">
			{{ formset.management_form }}
			<input type="hidden" name="meeting_id" value="{{ meeting.id }}" />
			<table class="bordered-table" >
				<tr>
					<th>Member</th>
					<th>Function</th>
					<th>Attended</th>
				</tr>
				{% for form in formset.forms %}
					<tr>
						<td class="read-only-td" >{{ form.member_name }}</td>
						<td>{{ form.member_role }}</td>
						<td style="text-align: center; ">{{ form.attended }}</td>
						{{ form.member_id }}
					</tr>
				{% endfor %}
			</table>
			<input class="button" style="margin-left: 9cm; " type="submit" value="Submit"/>
		</form>
	</div>

{% endblock %}